<?php
$this->pageTitle=Yii::app()->name . ' - 登录入口';
$this->breadcrumbs=array(
	'登录',
);
?>

<h1>登录入口</h1>


<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableAjaxValidation'=>true,
)); ?>

	<p class="note">标记<span class="required">*</span> 为必填项.</p>

	<div class="row">
		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username'); ?>
		<?php echo $form->error($model,'username'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password'); ?>
		<?php echo $form->error($model,'password'); ?>
	</div>

	<div class="row">
		<?php echo CHtml::link('注册',array('site/reg')); ?>&nbsp;|&nbsp;
		<?php echo CHtml::link('忘记密码',array('Users/Recovery')); ?>&nbsp;|&nbsp;
		<?php echo CHtml::link('帮助',array('site/page','view'=>'help')); ?></a>
	</div>

	<div class="row rememberMe">
		<?php echo $form->checkBox($model,'rememberMe'); ?>
		<?php echo $form->label($model,'rememberMe'); ?>
		<?php echo $form->error($model,'rememberMe'); ?>
		<p class="hint">
			在公用电脑上请勿勾选。
		</p>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('登录'); ?><br />
	</div>

<?php $this->endWidget(); ?>
</div>
<!-- form -->
